<?php

$mysqli = new mysqli("localhost", "root", "", "rss");
if ($mysqli->connect_errno) {
	echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}


$result = array("success" => true);

$statement = $mysqli->prepare("DELETE FROM sources WHERE id = ?");
$statement->bind_param('i', $_GET["id"]);
if (!$statement->execute())
{
	$result = array("success" => false);
}


echo json_encode($result);

?>
